@import '@/app/styles/variables';

.modal {
  padding-bottom: 24px;
}

.image {
  overflow: hidden;
  border-radius: 24px;
  border: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  background: #f3f3f3;
  isolation: isolate;

  img {
    border: 0;
    border-radius: inherit;
    transition: 0.1s ease-in all;
    object-position: center center;
    object-fit: cover;
  }
}

.date {
  color: var(--Simple-Gray-Evening, var(--Simple-Grey-Evening, #ababab));
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 12px;

  &:hover {
    .title {
      color: #337cec;
    }

    .image img {
      transform: scale(1.1);
    }
  }

  &:hover {
    cursor: pointer;

    .title {
      color: var(--Simple-Blue-Day, #337cec);
    }
  }
}

.card:hover {
  .title {
    color: var(--Simple-Blue-Day, #337cec);
  }
}

.title {
  color: var(--Simple-Night, #000);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  /* 137.5% */
  align-self: stretch;
  max-width: 100%;
  word-wrap: break-word;
  align-self: flex-start;
}

@include media(sm) {
  .title {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }

  .date {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
  }
}